package video.local.analyse.image;

import java.io.File;
import java.io.IOException;

public class ImageSimilarity {
	public static double getSimilarity(String imagePath1, String imagePath2) throws IOException{
		Image image1 = new Image(imagePath1);
		Image image2 = new Image(imagePath2);
		return image1.getHistogram().getSimilarityByCross(image2.getHistogram());
	}
	
	public static double getSimilarity(File imageFile1, File imageFile2) throws IOException{
		Image image1 = new Image(imageFile1);
		Image image2 = new Image(imageFile2);	
		return image1.getHistogram().getSimilarityByCross(image2.getHistogram());
	}
}
